package com.giscloud.limp.dao;

import com.giscloud.limp.entity.LegalPublicity;
import org.apache.ibatis.annotations.Param;
import com.giscloud.limp.entity.LegalPublicityExample;
import java.util.List;
import com.giscloud.datasource.core.DynamicDataSource;
/**
 * 法制宣传
 * 
 * @author giscloud
 * @email giscloud@giscloud.com
 * @date 2020-06-08 14:49:45
 */
public interface LegalPublicityDao {
    @DynamicDataSource("ds1")
    long countByExample(LegalPublicityExample example);
    @DynamicDataSource("ds1")
    int deleteByExample(LegalPublicityExample example);
    @DynamicDataSource("ds1")
    int insert(LegalPublicity record);
    @DynamicDataSource("ds1")
    int insertSelective(LegalPublicity record);
    @DynamicDataSource("ds1")
    List<LegalPublicity> selectByExample(LegalPublicityExample example);
    @DynamicDataSource("ds1")
    int updateByExampleSelective(@Param("record") LegalPublicity record, @Param("example") LegalPublicityExample example);
    @DynamicDataSource("ds1")
    int updateByExample(@Param("record") LegalPublicity record, @Param("example") LegalPublicityExample example);
    @DynamicDataSource("ds1")
    int updateByPrimaryKeySelective(LegalPublicity record);
    @DynamicDataSource("ds1")
    int updateByPrimaryKey(LegalPublicity record);
    @DynamicDataSource("ds1")
    LegalPublicity selectByPrimaryKey(Integer legalPublicityId);
    @DynamicDataSource("ds1")
    LegalPublicity selectOneByExample(LegalPublicityExample example);
    @DynamicDataSource("ds1")
    LegalPublicity selectOneByExampleSelective(@Param("example") LegalPublicityExample example, @Param("selective") LegalPublicity.Column... selective);
    @DynamicDataSource("ds1")
    LegalPublicity selectByPrimaryKeySelective(Integer legalPublicityId, @Param("selective") LegalPublicity.Column... selective);
    @DynamicDataSource("ds1")
    List<LegalPublicity> selectByExampleSelective(@Param("example") LegalPublicityExample example, @Param("selective") LegalPublicity.Column... selective);

}
